home *** CD-ROM | disk | FTP | other *** search
-
-
-
- YYYYPPPPFFFFIIIILLLLEEEESSSS((((4444)))) YYYYPPPPFFFFIIIILLLLEEEESSSS((((4444))))
-
-
-
- NNNNAAAAMMMMEEEE
- ypfiles - the NIS database and directory structure
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The network information service (NIS) uses a database of _m_d_b_m(3B) files
- in the directory hierarchy at /_v_a_r/_n_s/_d_o_m_a_i_n_s. A _m_d_b_m database consists
- of a files created by calls to the _m_d_b_m library package. Typically these
- have a name ending in ....mmmm For instance, the database named _h_o_s_t_s._b_y_n_a_m_e,
- is implemented by the file _h_o_s_t_s._b_y_n_a_m_e._m . A _m_d_b_m database served by the
- NIS is called a NIS _m_a_p. A NIS _d_o_m_a_i_n is a named set of NIS maps. Each
- NIS domain is implemented as a subdirectory of /_v_a_r/_n_s/_d_o_m_a_i_n_s containing
- the map. Any number of NIS domains can exist. Each may contain any
- number of maps.
-
- No maps are required by the NIS lookup service itself, although they may
- be required for the normal operation of other parts of the system. There
- is no list of maps which NIS serves - if the map exists in a given
- domain, and a client asks about it, the NIS will serve it. For a map to
- be accessible consistently, it must exist on all NIS servers that serve
- the domain. To provide data consistency between the replicated maps,
- entries to run _y_p_x_f_r periodically exist in /_u_s_r/_s_p_o_o_l/_c_r_o_n/_c_r_o_n_t_a_b_s/_r_o_o_t
- on each server. More information on this topic is in _y_p_x_f_r(1M).
-
- NIS maps should contain two distinguished key-value pairs. The first is
- the key YP_LAST_MODIFIED, having as a value a ten-character ASCII order
- number. The order number should be the UNIX time in seconds when the map
- was built. The second key is YP_MASTER_NAME, with the name of the NIS
- master server as a value. _m_a_k_e_m_d_b_m(1M) generates both key-value pairs
- automatically. A map that does not contain both key-value pairs can be
- served by the NIS, but the _n_s_d process will not be able to return values
- for ``Get order number'' or ``Get master name'' requests. In addition,
- values of these two keys are used by _y_p_x_f_r when it transfers a map from a
- master NIS server to a slave. If _y_p_x_f_r cannot figure out where to get the
- map, or if it is unable to determine whether the local copy is more
- recent than the copy at the master, you must set extra command line
- switches when you run it.
-
- NIS maps must be generated and modified only at the master server. They
- are copied to the slaves using _y_p_x_f_r(1M) to avoid potential byte-ordering
- problems among NIS servers running on machines with different
- architectures, and to minimize the amount of disk space required for the
- _m_d_b_m files. The NIS database can be initially set up for both masters
- and slaves by using _y_p_i_n_i_t(1M).
-
-
- After the server databases are set up, it is probable that the contents
- of some maps will change. In general, some ASCII source version of the
- database exists on the master, and it is changed with a standard text
- editor. The update is incorporated into the NIS map and is propagated
- from the master to the slaves by running /_v_a_r/_y_p/_y_p_m_a_k_e. _y_p_m_a_k_e executes
- the file /_v_a_r/_y_p/_m_d_b_m__p_a_r_s_e and logs its activity in /_v_a_r/_y_p/_y_p_m_a_k_e._l_o_g.
- /_v_a_r/_y_p/_m_d_b_m__p_a_r_s_e contains functions for all supplied maps; if you add a
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- YYYYPPPPFFFFIIIILLLLEEEESSSS((((4444)))) YYYYPPPPFFFFIIIILLLLEEEESSSS((((4444))))
-
-
-
- NIS map, edit this file to support the new map. The script uses _y_p_p_u_s_h
- to propagate the changed map to the slaves. _y_p_p_u_s_h is a client of the
- map _y_p_s_e_r_v_e_r_s , which lists all the NIS servers. For more information on
- this topic, see _y_p_p_u_s_h(1M).
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- makemdbm(1M), ypinit(1M), ypmake(1M), ypxfr(1M), yppush(1M), yppoll(1M),
- nsd(1M), rpcinfo(1M), mdbm(3B), nis(7P)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-